<?php 
class CabinetController extends Controller
{	
	/**
	 * Specifies the access control rules.
	 * This method is used by the 'accessControl' filter.
	 * @return array access control rules
	 */
	public function accessRules()
	{
		return array(
			array('deny',  // deny all users
				'roles'=>array('guest'),
			),
		);
	}
	
	public function actionIndex() {
		if (Yii::app()->user->checkAccess('content'))
			$this->redirect(array('parser/step1'));
		
		$this->render('index',array());
	}
}